<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>blog_add</title>
</head>
<body>
<form action="" method="post">
    {% csrf_token %}
    博客标题:<input type="text" name="title" placeholder="标题">
    <br>
    博客内容:<textarea name="content" id="content" cols="30" rows="10">

    </textarea>
    <br>
    选择作者:<select name="author" id="author">
        {% for author in authors %}
            <option value="{{ author.id }}">{{ author.name }}</option>
        {% endfor %}

    </select>
    <input type="submit" value="提交">

</form>

</body>
</html>